package com.ruoyi.Dorm.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.domain.BaseEntity;
import java.util.Date;

/**
 * 宿舍表 xyb_dorm
 * 
 * @author ruoyi
 * @date 2019-08-23
 */
public class Dorm extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 主键 */
	private Integer id;
	/** 校区ID */
	private Integer schoolId;
	/** 宿舍名称 */
	private String dormName;
	/** 1有效0无效 */
	private Integer valid;
	/** 建立时间 */
	private String createDate;
	/** 修改时间 */
	private String updateDate;
	/** 校区名称 */
	private String schoolName;

	public void setId(Integer id) 
	{
		this.id = id;
	}

	public Integer getId() 
	{
		return id;
	}
	public void setSchoolId(Integer schoolId) 
	{
		this.schoolId = schoolId;
	}

	public Integer getSchoolId() 
	{
		return schoolId;
	}
	public void setDormName(String dormName) 
	{
		this.dormName = dormName;
	}

	public String getDormName() 
	{
		return dormName;
	}
	public void setValid(Integer valid) 
	{
		this.valid = valid;
	}

	public Integer getValid() 
	{
		return valid;
	}
	public void setCreateDate(String createDate) 
	{
		this.createDate = createDate;
	}

	public String getCreateDate() 
	{
		return createDate;
	}
	public void setUpdateDate(String updateDate) 
	{
		this.updateDate = updateDate;
	}

	public String getUpdateDate() 
	{
		return updateDate;
	}
	public void setSchoolName(String schoolName) 
	{
		this.schoolName = schoolName;
	}

	public String getSchoolName() 
	{
		return schoolName;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("schoolId", getSchoolId())
            .append("dormName", getDormName())
            .append("valid", getValid())
            .append("createDate", getCreateDate())
            .append("updateDate", getUpdateDate())
            .append("schoolName", getSchoolName())
            .toString();
    }
}
